/*
 * @Description:
 * @version:
 * @Author: sunqian_sr
 * @Date: 2022-12-01 14:24:29
 * @LastEditors: Andy
 * @LastEditTime: 2023-01-13 17:34:04
 */
import i18n from '@/common/lang'

export const columns = [
  {
    label: '菜单名称(中文)',
    width: 150,
    prop: 'name',
    fixed: true
  },
  {
    label: '菜单名称(英文)',
    width: 150,
    prop: 'address',
    fixed: true
  },
  {
    label: '菜单类型',
    width: 110,
    prop: 'address',
    fixed: true
  },
  {
    label: '应用名称',
    prop: 'address',
    width: 130
  },
  {
    label: '权限标识',
    prop: 'address',
    width: 140
  },
  {
    label: '菜单图标',
    prop: 'address',
    width: 140
  },
  {
    label: '组件路径',
    prop: 'address',
    width: 140
  },
  // {
  //   label:'排序',
  //   prop:'address',
  //   width: 140
  // }，
  {
    label: '状态',
    prop: 'address',
    width: 140
  },
  {
    label: '创建时间',
    prop: 'address',
    width: 140
  }
]

export const visibleOptions = [
  { label: '隐藏', value: '0' },
  { label: '显示', value: '1' }
]
export const isFrameOptions = [
  { label: '否', value: '0' },
  { label: '是', value: '1' }
]

// 按钮表格

export const btnColumns = [
  {
    label: '按钮名称',
    prop: 'menuName'
  },
  {
    label: '英文名称',
    prop: 'menuNameEn',
    width: 160
  },
  {
    label: '权限标识',
    prop: 'perms'
  },
  {
    label: '排序',
    prop: 'sort'
  }
]

export const subTableColumns = [
  {
    label: i18n.t('auth.interface.apiName'),
    prop: 'apiName'
  },
  {
    label: i18n.t('auth.interface.perms'),
    prop: 'perms'
  },
  {
    label: i18n.t('auth.interface.apiUrl'),
    width: 200,
    prop: 'apiUrl'
  },
  {
    label: i18n.t('auth.interface.developer'),
    prop: 'developer',
    width: 110
  }
]

export const btnActions = [
  {
    key: 'edit',
    text: '编辑',
    permissions: 'upms:menu:update'
  },
  {
    key: 'delete',
    text: '删除',
    permissions: 'upms:menu:delete'
  }
]
